package com.atguigu.crowd.handler;

import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloHandler {

	@RequestMapping("/test/spring/session/set")
	public String getson(HttpSession session) {
		session.setAttribute("king", "hello");
		return "ok";
	}
}
